//
//  ManHuaCell.m
//  Double
//
//  Created by 孟令博 on 15/5/22.
//  Copyright (c) 2015年 袁庆秋. All rights reserved.
//

#import "ManHuaCell.h"

@implementation ManHuaCell
- (void)dealloc
{
    [_lable1 release];
    [_lable2 release];
    [_image release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        UIImageView *myImageView = [[UIImageView alloc] initWithFrame:CGRectMake(10, 0, [UIScreen mainScreen].bounds.size.width - 20, 150)];
        myImageView.layer.cornerRadius = 10;
        myImageView.clipsToBounds = YES;
        [self.contentView addSubview:myImageView];
        [myImageView release];
        
        self.image = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, myImageView.frame.size.width, 150)];
        [myImageView addSubview:self.image];
        [_image release];
        
        self.lable1 = [[UILabel alloc] initWithFrame:CGRectMake(0, 130, myImageView.frame.size.width / 2, 20)];
        [self.lable1 setBackgroundColor:[UIColor lightGrayColor]];
        self.lable1.alpha = 0.8;
        self.lable1.font = [UIFont systemFontOfSize:10];
        [myImageView addSubview:self.lable1];
        [_lable1 release];
        
        self.lable2 = [[UILabel alloc] initWithFrame:CGRectMake(myImageView.frame.size.width / 2, 130, myImageView.frame.size.width / 2, 20)];
        self.lable2.alpha = 0.8;
        self.lable2.font = [UIFont systemFontOfSize:10];
        self.lable2.textAlignment = NSTextAlignmentRight;
        [self.lable2 setBackgroundColor:[UIColor lightGrayColor]];
        [myImageView addSubview:self.lable2];
        [_lable2 release];
    }
    return self;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
